using System;
using System.Runtime.Serialization;
namespace Net35.Xrm.Sdk
{
	[DataContract(Name = "QuickFindResult", Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
	public sealed class QuickFindResult : IExtensibleDataObject
	{
		private int errorCode;
		private EntityCollection data;
		private ExtensionDataObject _extensionDataObject;
		[DataMember]
		public int ErrorCode
		{
			get
			{
				return this.errorCode;
			}
			set
			{
				this.errorCode = value;
			}
		}
		[DataMember]
		public EntityCollection Data
		{
			get
			{
				return this.data;
			}
			set
			{
				this.data = value;
			}
		}
		public ExtensionDataObject ExtensionData
		{
			get
			{
				return this._extensionDataObject;
			}
			set
			{
				this._extensionDataObject = value;
			}
		}
		public QuickFindResult()
		{
		}
		public QuickFindResult(int error, EntityCollection entities)
		{
			this.errorCode = error;
			this.data = entities;
		}
	}
}
